
<form action="<?php echo U('Admin/Setting/SendAddress/update')?>" id="address-send-address" method="post" class="_ajaxSubmit">
    <div class="col-xs-12 col-md-12 col-lg-12 padding-none lists">
        <div class="col-lg-2 col-md-3 col-xs-5 filed-name text-right">发货人<pub>*</pub> :</div>
        <div class="col-lg-3 col-md-5 col-xs-7 filed-from padding-none">
            <input name="name" type="text" value="<?php echo $data['name']?>" autocomplete="off" class="form-control radius-none _data">
        </div>
    </div>
    <div class="col-xs-12 col-md-12 col-lg-12 padding-none lists">
        <div class="col-lg-2 col-md-3 col-xs-5 filed-name text-right">电话号码<pub>*</pub> :</div>
        <div class="col-lg-3 col-md-5 col-xs-7 filed-from padding-none">
            <input name="mobile" type="text" value="<?php echo $data['mobile']?>" autocomplete="off" class="form-control radius-none _data">
        </div>
    </div>
    <div class="col-xs-12 col-md-12 col-lg-12 padding-none lists">
        <div class="col-lg-2 col-md-3 col-xs-5 filed-name text-right">发货地址<pub>*</pub> :</div>
        <div class="col-lg-3 col-md-5 col-xs-7 filed-from padding-none">
            <input name="address" type="text" value="<?php echo $data['address']?>" autocomplete="off" class="form-control radius-none _data">
        </div>
    </div>
    <div class="col-xs-12 col-md-12 col-lg-12 padding-none lists">
        <div class="col-lg-2 col-md-3 col-xs-5 filed-name text-right">是否是默认:</div>
        <div class="col-lg-3 col-md-5 col-xs-7 filed-from padding-none">
            <div class="radio">
                <?php

                    $checked = [
                        1 => 'checked_1',
                        2 => 'checked_2',
                    ];

                $$checked[$data['is_default']] = ' checked="checked"';

                ?>
                <label class="radio-inline">
                    <input  name="is_default"<?php echo $checked_1?> class="_data" value="1" type="radio"> 是
                </label>

                <label class="radio-inline">
                    <input  name="is_default"<?php echo $checked_2?> class="_data" value="2" type="radio"> 否
                </label>
            </div>
        </div>
    </div>
    <div class="col-xs-12 col-md-12 col-lg-12 lists text-right">
        <input type="hidden" value="<?php echo $id?>" name="id" class="_data">
        <input type="submit" name="dosubmit" value="保存" class="btn btn-success radius-none">
        <input type="reset"  value="重置" class="btn btn-info radius-none">
    </div>
</form>
<script>
    //表单异步提交回掉
    function ajaxRequestCallback(result,id)
    {

        showMessage(result.msg,result.code,'<?php echo U("Admin/Setting/SendAddress/lists")?>',{},2000);

    }
</script>